What could be causing the Tesseract error when extracting text from an image in Python